package com.qipay.sp.excutor.dafu;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import org.springframework.stereotype.Component;

//汇通
@Component
public class DafuFactory implements ExcutorFactory {
    @Override
    public AbstractExcutor createWapExcutor(){
        return (AbstractExcutor) SpringContextUtil.getBean(DafuAliWapExcutor.class);
    }
    @Override
    public AbstractExcutor createNativeExcutor(){
        return (AbstractExcutor) SpringContextUtil.getBean(DafuAliNativeExcutor.class);
    }

}
